package forms

type CreateProjectForm struct {
	Name     string `json:"name" form:"name" binding:"required,max=20"`
	Desc     string `json:"desc" form:"desc"`
	Cover    string `json:"cover" form:"cover" binding:"required"`
	GroupId  uint64 `json:"group_id" form:"group_id" binding:"required"`
	LeaderId uint64 `json:"leader_id" form:"leader_id" binding:"required"`
}

type UpdateProjectForm struct {
	ProjectId    uint64 `json:"project_id" form:"project_id" binding:"required"`
	GroupId      uint64 `json:"group_id" form:"group_id" binding:"required"`
	UserId       uint64 `json:"user_id" form:"user_id" binding:"required"`
	ProjectName  string `json:"project_name" form:"project_name" binding:"required,max=20"`
	ProjectDesc  string `json:"project_desc" form:"project_desc"`
	ProjectCover string `json:"project_cover" form:"project_cover" binding:"required"`
}

type DeleteProjectForm struct {
	ProjectId uint64 `json:"project_id" form:"project_id" binding:"required"`
	GroupId   uint64 `json:"group_id" form:"group_id" binding:"required"`
	UserId    uint64 `json:"user_id" form:"user_id" binding:"required"`
}
